package cn.jf.modules.message.service;

import cn.jf.modules.message.entity.SysMessageTemplate;
import cn.jf.modules.message.mapper.SysMessageTemplateMapper;
import cn.jf.modules.system.base.service.JeecgServiceImpl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @Description: 消息模板
 * @Author: jeecg-boot
 * @Date:  2019-04-09
 * @Version: V1.0
 */
@Service(version = "1.0.0")
public class SysMessageTemplateServiceImpl extends JeecgServiceImpl<SysMessageTemplateMapper, SysMessageTemplate> implements ISysMessageTemplateService {

    @Autowired
    private SysMessageTemplateMapper sysMessageTemplateMapper;


    @Override
    public List<SysMessageTemplate> selectByCode(String code) {
        return sysMessageTemplateMapper.selectByCode(code);
    }
    @Override
   public IPage<SysMessageTemplate> getPageList(IPage<SysMessageTemplate> page,SysMessageTemplate sysMessageTemplate){
        return page.setRecords(sysMessageTemplateMapper.getPageList(sysMessageTemplate));
   }
}
